package aof.helper;

/**
 * Created by AOF on 2/6/2556.
 */
public class DateTimeHelper {
    public static boolean IsLastDayInMonth(Integer day,Integer month){
        switch (month){
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                if(day.equals(31))
                    return true;
                else
                    return false;
            case 2:
                if(day >= 28)
                    return true;
                else
                    return false;
            case 4:
            case 6:
            case 9:
            case 11:
                if(day.equals(30))
                    return true;
                else
                    return false;
            default:
                return false;
        }
    }
}
